<?php
namespace app\index\controller;


 use think\Controller;

 class Auth extends Controller
 {
     public function check()
     {
         if (!session('?username'))
         {
            return $this->redirect(url('index/user/login'));
         }
     }
     public function isCartSession()
     {
         if (!session('?cart'))
         {
             return $this->redirect(url('/'));
         }
     }
 }